
#include "typedefs.h"
#include "enumtypes.h"

#include "meshdef/constraints.h"
#include "meshdef/mesh.h"

/// This file defines functions of drawing using the OpenGL API

/// Renders a mesh model using a naive method
/// For more FPS you must use vertex buffers (it is very efficient!)
void glDrawModel(Mesh *model, int meshrendermode_mask=SMOOTH);

/// Renders the vertices positions of the model 
void glDrawModelPoints(Mesh *model);

/// Renders the faces of the model 
void glDrawModelFaces(Mesh *model);

/// Renders the faces of the model using one only normal vertex per vertex
void glDrawModelFacesOneNormal(Mesh *model);

/// Draws a 3D cursor
void drawCursor3D(const Point3 &c, Number sf);

/// Draws the positions of constraints 
void glDrawPositions(const Constraints &c);
